package com.ec.api.client;

import com.ec.api.config.FeignConfig;
import com.ec.api.domain.dto.CreateBillRequest;
import com.ec.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "billing-service", configuration = FeignConfig.class)
public interface BillClient {
    
    /**
     * 创建账单和账单详情
     */
    @PostMapping("/bills/create")
    Result<Long> createBill(@RequestBody CreateBillRequest request);
}